home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00a.txt
/
000023_icon-group-sender _Fri Feb 4 13:29:57 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id NAA05808
for icon-group-addresses; Fri, 4 Feb 2000 13:26:13 -0700 (MST)
Message-Id: <200002042026.NAA05808@baskerville.CS.Arizona.EDU>
Date: Thu, 3 Feb 2000 18:34:08 -0700 (MST)
From: Gregg Townsend <gmt@baskerville.CS.Arizona.EDU>
To: icon-group@optima.CS.Arizona.EDU, oikonomou@att.com
Subject: Re: calling a C routine from icont
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
From: Kostas Oikonomou <oikonomou@att.com>
Date: Thu, 3 Feb 2000 15:00:09 -0500 (EST)
Is it possible to call a C routine for which you have only a header
available, and whose code exists only in a library (no source available)?
No. Icon can't call arbitrary C functions -- only functions written
specifically for use with Icon. The C function is always passed an
argc / argv pair, and the argv array contains Icon "descriptors".
Details are given in Section 3 of
http://www.cs.arizona.edu/icon/docs/ipd240.htm
You can, however, write interface routines that accept Icon calls
and in turn call the specialized library.
---------------------------------------------------------------------------
Gregg Townsend Staff Scientist The University of Arizona
gmt@cs.arizona.edu Computer Science Tucson, Arizona, USA